requireDirectory

fun requireDirectory(requireExists: Boolean = true): Path

Throw if this path is not a directory, or doesn't exist and requireExists is true (as it is by default).

Return

this

Sources

js source
Link copied to clipboard